package com.mall.product.feign;

import com.common.utils.R;
import com.mall.product.fallback.SeckillFeignServiceCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "mall-seckill",fallback = SeckillFeignServiceCallback.class)
public interface SeckillFeignService {
    @GetMapping("/seckill/secckillSessionBySkuId/{skuId}")
    public R getSecckillSessionBySkuId(@PathVariable("skuId") Long skuId);
}
